package com.ozo.cloud.manage.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 权限 视图对象
 * </p>
 *
 * @author qiangesoft
 * @since 2024-07-11
 */
@Schema(description = "权限视图对象")
@Data
@NoArgsConstructor
public class SysPermissionVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "父级id")
    private Long parentId;

    @Schema(description = "权限类型：menu-菜单 iframe-iframe link-外链 button-按钮")
    private String type;

    @Schema(description = "名称")
    private String title;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "路由")
    private String route;

    @Schema(description = "组件")
    private String component;

    @Schema(description = "权限标识")
    private String code;

    @Schema(description = "排序号")
    private Integer orderNum;

    @Schema(description = "菜单隐藏")
    private Boolean hidden;

    @Schema(description = "标签固定")
    private Boolean affix;

    @Schema(description = "状态：1-启用 0-禁用")
    private String status;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "子级")
    private List<SysPermissionVO> children;

}
